package com.lxyk.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_history")
public class History {
    /*
    * 送水历史ID
    * */
    private Integer hid;

    private Integer workerId;

    private Integer custId;

    /*
    * 关联客户
    * */
    @TableField(exist = false)
    private Customer customer;

    /*
     * 关联送水工
     * */
    @TableField(exist = false)
    private Worker worker;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendWaterTime;

    private Integer sendWaterCount;


}
